package com.qf.model;

import java.math.BigDecimal;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class User {
    private int uid;
    private String phone;
    private String password;

    private String name;
    private String sex;
    private String country;
    private String idtype;
    private String idnumber;
    private String address;
    private BigDecimal money;//余额



    private List<UserCard> userCards;//用户关联的银行卡列表

    public List<UserCard> getUserCards() {
        return userCards;
    }

    public void setUserCards(List<UserCard> userCards) {
        this.userCards = userCards;
    }

    public User() {
    }

    public User(int uid, String phone, String password, String name, String sex, String country, String idtype, String idnumber, String address, BigDecimal money) {
        this.uid = uid;
        this.phone = phone;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.country = country;
        this.idtype = idtype;
        this.idnumber = idnumber;
        this.address = address;
        this.money = money;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getIdtype() {
        return idtype;
    }

    public void setIdtype(String idtype) {
        this.idtype = idtype;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", country='" + country + '\'' +
                ", idtype='" + idtype + '\'' +
                ", idnumber='" + idnumber + '\'' +
                ", address='" + address + '\'' +
                ", money=" + money +
                '}';
    }
}
